package com.hmall.common.client;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author Azer
 * @LOVE,,,
 * @Date 2021/11/8 19:41
 */
@FeignClient(name = "userservice")
public interface UserClient {

    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id) ;


}

